<template>
  <div @click='father'>
   <h1>v-on练习</h1>
   <a href="www.baidu.com"  @click="fn">百度一下</a>
    <a href="www.baidu.com" @click="fn(e)">百度一下</a>
  </div>
</template>

<script>
export default {
  data () {
      return {
          money:1000
      }
  },
methods: {
 father() {
     console.log('hh');
 },
 fn (e) {
     e.stopPropagation()
     console.log(1);
   e.preventDefault()
   console.log(2);
 }
}
}
</script>

<style>

</style>